/**
 * @description menu index
 * @author wangfupeng
 */

import ConvertToLinkCard from './ConvertToLinkCard';
import ConvertLinkCardToLink from './ConvertLinkCardToLink';
import EditLinkCardMenu from './editLinkCard';
import UnLinkCard from './unLinkCard';
import ViewLinkCard from './viewLinkCard';

import { genConvertToLinkCardConfig } from './config';

export const convertToLinkCardMenuConf = {
  key: 'convertToLinkCard',
  factory() {
    return new ConvertToLinkCard();
  },

  // 默认的菜单菜单配置，将存储在 editorConfig.MENU_CONF[key] 中
  // 创建编辑器时，可通过 editorConfig.MENU_CONF[key] = {...} 来修改
  config: genConvertToLinkCardConfig(),
};

export const ConvertLinkCardToLinkMenuConf = {
  key: 'convertLinkCardToLink',
  factory() {
    return new ConvertLinkCardToLink();
  },
};

export const EditLinkCardMenuConf = {
  key: 'editLinkCardMenu',
  factory() {
    return new EditLinkCardMenu();
  },
};

export const UnLinkCardMenuConf = {
  key: 'unlinkCardMenu',
  factory() {
    return new UnLinkCard();
  },
};

export const ViewLinkCardMenuConf = {
  key: 'viewlinkCardMenu',
  factory() {
    return new ViewLinkCard();
  },
};




